﻿using Koonsoft.HYCRM.DAL;

namespace Koonsoft.HYCRM.BLL
{
    public class RegionBLL
    {
        private RegionDAL _dal = null;

        protected RegionDAL DAL
        {
            get
            {
                if (_dal == null)
                {
                    _dal = new RegionDAL();
                }

                return _dal;
            }
        }

        /// <summary>
        /// 根据注册地ID获取区域名称
        /// </summary>
        /// <param name="regionID"></param>
        /// <returns></returns>
        public string GetRegionNameByRegionID(int regionID)
        {
            return DAL.GetRegionNameByRegionID(regionID);
        }
    }
}
